<div class="line">&nbsp;</div>
<a name="comment_list" id="comment_list"></a>网友评论
	{% for com in comments  %}
	<table width="100%" border="0">
	  <tr>
	    <td width="18%" bgcolor="#f4f4f4">&nbsp;网友：<a href="{{ com.link }}" target="_blank">{{ com.author }}</a></td>
	    <td width="82%" bgcolor="#f4f4f4">&nbsp;{{com.date|datetz:"D Y/m/d H:i"}}&nbsp;{% if 6|power %}<a href="#" onClick="if(confirm('是否确定要删除该评论？')) location.href='/admin/comments/del?id={{com.id}}';else return;">删除</a> {% endif %}</td>
	  </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td>&nbsp;{{ com.text|linebreaks }}</td>
	  </tr>
	</table>
	{% endfor %}
<div class="line">&nbsp;</div>
<div id="m_comment_post">
  <table border="0" cellspacing="6" cellpadding="3" class="formhd" width="90%" bgcolor="#ffffff" align="center">
    <form  name="mycomment" method="post" action="/newcomment">
      <tr>
        <td colspan="2"></td>
      </tr>
      
      <tr>
        <td colspan="2">网友：</td>
      </tr>
      <tr>
        <td class="text">
        <input type="text" name="authorName" id="authorName" value="{{ user.nickname }}"  size="22" />
      	</td>
      </tr>
      
      <tr>
        <td colspan="2">Email：</td>
      </tr>
      <tr>
        <td class="text"><input type="text" name="authorMail" id="authorMail" value="{{ user.email }}" size="22" /></td>
      </tr>

      <tr>
        <td colspan="2">正文：</td>
      </tr>
      <tr>
        <td class="text"><textarea name="content" id="commentContent" cols="50" rows="6" ></textarea></td>
      </tr>
      <input type="hidden" name="post_key" value="{{ post.key }}" />
      <tr>
        <td colspan="2" class="text"><input type="submit" value="提交评论"  style="height:30px;" /></td>
      </tr>
    </form>
  </table>